package com.heimait.jiekou;
/**
 * 使用继承+接口，写出标准JAVA_bin,并运行。
 *
 * 青蛙    属性:名字，年龄   行为:吃虫子，蛙泳
 * 狗      属性:名字，年龄   行为:吃骨头，狗刨
 * 兔子     属性:名字，年龄   行为:吃胡萝卜
 *
 * **/
public class test {
    public static void main(String[] args) {

        dog dog = new dog("大黄",2);
        System.out.println("狗名字："+dog.getName());
        System.out.println("狗年龄："+dog.getAge());
        dog.eat();
        dog.swiming();
        dog.run();
        System.out.println("-------------------------------------------------------");
        rabbit rabbit = new rabbit("玉兔",1);
        System.out.println("兔名字："+rabbit.getName());
        System.out.println("兔年龄："+rabbit.getAge());
        rabbit.eat();
        rabbit.run();
        System.out.println("-------------------------------------------------------");
        frog frog = new frog("大蛙",1);
        System.out.println("蛙名字："+frog.getName());
        System.out.println("蛙年龄："+frog.getAge());
        frog.eat();
        frog.swiming();
    }
}
